#ifndef __HELLOWORLD_SCENE_H__
#define __HELLOWORLD_SCENE_H__

#include "cocos2d.h"
#include "format.h"
USING_NS_CC;

enum HelloWorldMenuTag
{
	TAG_SINGLE,
	TAG_MULTI,
	TAG_SETTINGS,
	TAG_EXIT,
};

enum SettingButtonTag
{
	TAG_EXIT_GAME,
	TAG_RETURN_MAIN,
	TAG_LOADGAME,
	TAG_SAVEGAME,
	TAG_MUSIC,
};

class HelloWorld : public cocos2d::Layer
{
public:
	HelloWorld();
	~HelloWorld();
    static cocos2d::Scene* createScene();
    virtual bool init();
    CREATE_FUNC(HelloWorld);
	void SetAllItemVisable(bool Visable);

private:
	virtual bool onTouchBegan(Touch *touch, Event *unused_event);
	virtual void onTouchMoved(Touch *touch, Event *unused_event);
	virtual void onTouchEnded(Touch *touch, Event *unused_event);
	std::string GetUrlByTag(HelloWorldMenuTag _HelloWorldMenuTag, bool IsTouched = false);
	void LoadFinish();
	CCParticleSystem* particleSystem;
	std::vector<Sprite*> Buttons;

	uint16 m_TouchedButton;
};

class SettingsLayer : public Layer
{
public:
	SettingsLayer();
	~SettingsLayer();
	virtual bool init();
	CREATE_FUNC(SettingsLayer);
private:
	virtual bool onTouchBegan(Touch *touch, Event *unused_event);
	virtual void onTouchEnded(Touch *touch, Event *unused_event);
	virtual void onTouchMoved(Touch *touch, Event *unused_event){}
	std::vector<Sprite*> SettingButton;
	bool CanPlayMusic;
	uint16 m_TouchedButton;
	Sprite* BackGround;
};
#endif // __HELLOWORLD_SCENE_H__
